import os, os.path
import re
import sys
import glob

def Build_lib_HumbleCore(env):
    humbleGL_sources = glob.glob('../../src/libHumbleCore/*.cpp')
    # GLX based Renderers.
    if env['OS'] in ("Darwin", "Linux"):
        humbleGL_sources_platform = glob.glob('../../src/libHumbleCore/Linux/*.cpp')
    if env['OS'] in ("Windows"):
        humbleGL_sources_platform = glob.glob('../../src/libHumbleCore/Win32/*.cpp')	
    print "Building Humble Core Library"
    temp = env.SharedLibrary(target = 'out/libs/HumbleCore', source = [humbleGL_sources,humbleGL_sources_platform])
    env.AlwaysBuild(temp)

